// src/main/java/com/xxxy/ljh/myapplication/Dao/BorrowDao.java
package com.xxxy.ljh.myapplication.Dao;

import com.xxxy.ljh.myapplication.model.BorrowRecord;
import java.util.List;

public interface BorrowDao {
    long requestBorrow(BorrowRecord borrowRecord);
    boolean returnItem(int borrowId, String returnRemark);
    List<BorrowRecord> getBorrowRecordsByUserId(int userId);
    List<BorrowRecord> getBorrowRecordsByItemId(int itemId);
    BorrowRecord getBorrowRecordById(int borrowId);
    List<BorrowRecord> getOverdueRecords();
    boolean updateBorrowStatus(int borrowId, int status);
}
